<template>
	<view class="poster-modal-wrap animated" :class="zoomCouponClass">
		<view class="modal-img">
			<image src='/static/new.png'></image>
			<view class="coupon-con">
				<view class="title">新人专享券</view>
				<view class="tip">-送你一份专属礼享金-</view>
				<view class="coupon-num">
					<text>￥</text>
					{{couponInfo.reduce_price}}
				</view>
				<button class="btn line-center" @tap='closeCouponModal'>开心收下</button>
			</view>
		</view>
		<view class="close" @tap='closeCouponModal'>
			<uni-icons type='close' color="#fff" size="30"></uni-icons>
		</view>
	</view>
</template>

<script>
	export default {
		name:"new-gift",
		props:{
			zoomCouponClass:String,
			couponInfo:Object
		},
		data() {
			return {
				
			};
		},
		methods:{
			closeCouponModal(){
				this.$emit('closeCouponModal')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.poster-modal-wrap {
		width: 100%;
		height: 100%;
		position: fixed;
		left: 0;
		top: 0;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	
		.modal-img {
			width: 524rpx;
			height: 666rpx;
			border-radius: 16rpx;
			overflow: hidden;
			position: relative;
	
			image {
				width: 100%;
				height: 100%;
			}
	
			.coupon-con {
				width: 100%;
				height: 100%;
				position: absolute;
				left: 0;
				top: 0;
	
				.title {
					font-weight: bold;
					font-size: 48rpx;
					color: #B44701;
					text-align: center;
					padding-top: 70rpx;
				}
	
				.tip {
					font-weight: bold;
					font-size: 32rpx;
					color: #B44701;
					text-align: center;
					padding-top: 42rpx;
				}
	
				.coupon-num {
					color: #FF0036;
					font-size: 100rpx;
					text-align: center;
					padding-top: 20rpx;
	
					text {
						font-size: 32rpx;
					}
				}
	
				/* 创建内阴影 */
				.inner-shadow {}
	
				.btn {
					width: 306rpx;
					height: 92rpx;
					background: linear-gradient(to right, #FFDCB6, #FFBD7B);
					box-shadow: inset 0 0 10px #FFDCB7;
					color: #B44701;
					font-size: 32rpx;
					font-weight: bold;
					border-radius: 46rpx;
					margin: 144rpx auto;
				}
			}
		}
	
		.modal-post-img {
			width: 688rpx;
			height: 992rpx;
			background: #fff;
			border-radius: 16rpx;
			overflow: hidden;
		}
	
		.close {
			width: 30px;
			height: 30px;
			margin: 20rpx auto 0;
		}
	}
</style>